package com.qibao.toolkit.exception.strategy;

import com.qibao.toolkit.web.ResponseModel;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 异常处理
 *
 * @author wangcheng
 * @version $Id: ExceptionHandleStrategy.java, v0.1 2018/9/26 10:08 wangcheng Exp $$
 */
public interface ExceptionHandleStrategy {

    /**
     * 异常处理
     */
    ResponseModel handle(HttpServletRequest request, HttpServletResponse response, Throwable throwable);

}
